<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>用户修改</h1>
<form th:action="@{/update}" method="get">
    <input type="text" name="wid" th:value="${worker.wid}" readonly>
    姓名<input type="text" name="wname" value="" th:value="${worker.wname}">
    </tr>
    <tr>
        <td>性别</td><td><input type="radio" name="wsex" value="男">男<input type="radio" name="sex" value="女">女</td>
    </tr>
    <tr>
        <td>电话</td><td><input type="text" name="wtel" th:value="${worker.wtel}"></td>
    </tr>
    <tr>
        <td>部门</td>
        <td>
            <select name="deptid" id="dname">
                <option value=0>所有部门</option>
                <option th:each="department:${departments}" th:value="${department.deptid}">
                    [[${department.dname}]]</option>
            </select>
        </td>
    </tr>
    <button id="update">保存</button><button >重置</button>
</form>
</body>
</html>